﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
    @Html.Partial("_PaintingNavigate")
    <div class="mt10 ml20 fl span9">
    	<ul class="breadcrumb">
            <li><a href="/">Home</a> <span class="divider"></span></li>
            <li><a href="/painting/list/catalog=@ViewBag.Catalog.Name.ToLower()">@ViewBag.Catalog.Name</a> <span class="divider"></span></li>
        </ul>
        
        <div class="greyShadow pt20">
        	<h3 class="mt0 tNormal fl pl20">@ViewBag.Catalog.Name</h3>
            <div class="pagination pagination-right pr20">
            @Html.Partial("_Pager", (ExpandoObject)ViewBag.PageModel)
            </div>
            <div class="clear"></div>
            
            <ul class="thumbnails productList pr20 mt10">
            @foreach (dynamic painting in ViewBag.PaintingList)
            {  <li>
                    <div class="thumbnail" style="height:260px;">
                    <div style="width:150px; height:150px;display:table-cell; vertical-align:middle;">
                        <div style="width:150px;"><a href="/painting/detail/@painting.PaintingNumber-@painting.Title?catalog=@ViewBag.Catalog.Name.ToLower()" title="@painting.Title"><img src="@painting.ImageUrl" style="max-height:150px; max-width:150px;" alt="@painting.Title" title="@painting.Title"></a></div>
                        </div>
                        <p class="mt5 text-center"><a href="/painting/detail/@painting.PaintingNumber-@painting.Title?catalog=@ViewBag.Catalog.Name.ToLower()" title="@painting.Title">@(painting.Title ?? "No Title")</a></p>
                        <p class="mt5 text-center">(ID:<span style="color:Red">@painting.PaintingNumber</span>)</p>
                        <p class="text-center"><a href="/painting/detail/@painting.PaintingNumber-@painting.Title?catalog=print art"  title="@painting.Title" class="btn btn-mini">Print Art</a><a href="/painting/detail/@painting.PaintingNumber-@painting.Title?catalog=oil painting" class="btn btn-mini ml10">Hand Paint</a></p>
                    </div>
                </li>
            }
            </ul>            
            <div class="pagination pagination-right pr20 pb20">
            @Html.Partial("_Pager", (ExpandoObject)ViewBag.PageModel)
            </div>
        </div>
    </div>
    <div class="clear"></div>